package com.wesley.mybatis;

import com.wesley.mybatis.config.MyBatisConfig;
import com.wesley.mybatis.mapper.UserMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * SpringIntegrationApp
 *
 * @author WangPanYong
 * @since 2021/10/13 11:20
 */
public class SpringIntegrationApp {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ioc = new AnnotationConfigApplicationContext(MyBatisConfig.class);
        UserMapper bean = (UserMapper) ioc.getBean("userMapper");
        System.out.println(bean.selectById(1L));
    }
}
